<?php

class Admin_Form_Login extends Zend_Form {

    public function init() {
        $this->setMethod('post');


        //text input for name
        $email = new Zend_Form_Element_Text('email');
        $email->setLabel('Email:')
                ->setOptions(array('size' => '100'))
                ->setRequired(true)                                
                ->addFilter('StringTrim')
                ->setAttrib("class", "input-block-level");

        //password input
        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Password:')
                ->setOptions(array('size' => '30'))
                ->setRequired(true)
                ->addFilter('HtmlEntities')
                ->addFilter('StringTrim')
                ->setAttrib("class", "input-block-level");

        //submit button
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Log In')
                ->setOptions(array('class' => 'submit'))
                ->setAttrib("class", "btn btn-large btn-success");

        //attach to form
        $this->addElement($email)
                ->addElement($password)
                ->addElement($submit);
    }

}

